<?php
namespace app\index\validate;
use think\Validate;
class StudentStyle extends Validate
{

    protected $rule=[
        'name'=>'unique:student_style|require',
        'desc'=>'require',
        'content'=>'require',
    ];


    protected $message=[
        'name.require'=>'标题不得为空！',
        'name.unique'=>'标题不得重复！',
        // 'title.max'=>'文章标题长度大的大于25个字符！',
        'desc.require'=>'学生描述不得为空！',
        'content.require'=>'内容不得为空！',
    ];

    protected $scene=[
        'add'=>['name','desc','content'],
        'edit'=>['name','desc'],
    ];





    

    




   

	












}
